package com.gome.axwl.aoc.dao;

import com.gome.axwl.aoc.entity.po.ContractPo;
import com.gome.axwl.aoc.entity.po.EmptyContractPo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;


public interface EmptyContractDao {
    /***
     * 通过空白合同模板编码 获取模板信息
     * @param emptyContractNo
     * @return
     */
    EmptyContractPo queryByNo(@Param("emptyContractNo") String emptyContractNo);

    /***
     * 通过服务商申请号获取
     * @param applyInfoId
     * @return
     */
    EmptyContractPo queryByApplyInfoId(@Param("applyInfoId") Integer applyInfoId);

    /***
     * 服务商签署后 更新
     * @param emptyContractJson
     * @param applyInfoId
     * @return
     */
    int updateJson(@Param("emptyContractJson")String emptyContractJson,@Param("applyInfoId")Integer applyInfoId,@Param("modifyTime")Date modifyTime);

    int addEmptyContract(EmptyContractPo emptyContractPo);

    int updateStatus(@Param("applyInfoId")Integer applyInfoId,@Param("status")Integer status,@Param("modifyTime")Date modifyTime);


}